<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div>
    <!-- Nav tabs -->
    <th:block th:if="${editTemplateVO==null}">
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">静态模板</a></li>
            <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">动态模板</a></li>
        </ul>
    </th:block>
    <th:block th:if="${editTemplateVO!=null}">
        <ul class="nav nav-tabs" role="tablist">
            <th:block th:if="${editTemplateVO.templateType=='动态模板'}">
                <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">动态模板</a></li>
            </th:block>
            <th:block th:if="${editTemplateVO.templateType=='静态模板'}">
                <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">静态模板</a></li>
            </th:block>
        </ul>
    </th:block>

    <!-- Tab panes -->
    <th:block th:if="${editTemplateVO==null}">
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane" id="profile">
                <div th:replace="template/dynamicTemplate::dynamicTemplate"></div>
            </div>
            <div role="tabpanel" class="tab-pane active" id="home">
                <div th:replace="template/staticTemplate::staticTemplate"></div>
            </div>
        </div>
    </th:block>
    <th:block th:if="${editTemplateVO!=null}">
        <th:block th:if="${editTemplateVO.templateType=='动态模板'}">
            <div style="height: 1075px" role="tabpanel" class="tab-pane " id="profile">
                <div th:replace="template/dynamicTemplate::dynamicTemplate"></div>
            </div>
        </th:block>
        <th:block th:if="${editTemplateVO.templateType=='静态模板'}">
            <div role="tabpanel" class="tab-pane active" id="home">
                <div th:replace="template/staticTemplate::staticTemplate"></div>
            </div>
        </th:block>

    </th:block>
</div>
</html>